//
//  HomePageView.swift
//  SwiftUIDemo
//
//  Created by zuosong on 2019/11/4.
//  Copyright © 2019 Kael. All rights reserved.
//

import SwiftUI

struct HomePageView: View {
    var body: some View {
        List(/*@START_MENU_TOKEN@*/0 ..< 5/*@END_MENU_TOKEN@*/) { item in
            VStack {
                HStack {
                    Spacer()
                        .frame(width: 14, height: 10, alignment: .leading)
                    Image("cache_singledata_icon")
                    Text("row 大标题  ----- \(item)")
                        .font(.headline)
                    Text("小标题 row 状态")
                        .font(.subheadline)
                }
                HStack {
                    Spacer()
                        .frame(width: 10, height: 10, alignment: .leading)
                    Text("row 详情")
                        .font(.subheadline)
                        .frame(width: 100, height: 20, alignment: .leading)
                }
                .frame(width: 100, height: 20, alignment: .leading)
                
            }
            .frame(width: 320, height: 80, alignment: .leading)
        }
    }
}


struct HomePageView_Previews: PreviewProvider {
    static var previews: some View {
        Group {
            HomePageView()
            HomePageView()
        }
    }
}
